package com.designpattern.sixchapter.first;

public class Light {
	
	private String roomName;
	
	public Light() {
		
	}
	public Light(String roomName) {
		this.roomName = roomName;
	}
	
	public void on() {
		System.out.println(roomName + "light on");
	}
	
	public void off() {
		System.out.println(roomName + "light off");
	}


}
